package com.sushi.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

//@Data //包含以下所有

//@Setter
//@Getter
//@EqualsAndHashCode
//@AllArgsConstructor
//@NoArgsConstructor
//@ToString

@Data
@TableName("user") // 名字不同的连接
public class User {

    @TableField("id") // 命名不同的对接
    private Long id;
    private String name;
    private int age;

    @TableLogic
    private int deleted;

    public User() {
    }

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
